<!--main content start-->
<script src="js/workflowed/CCBX/addCCbxLc-BSB1.js"></script>
<section id="main-content">
    <section class="wrapper">
        <!--state overview end-->
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        报销申请
                        <!--<i class="add-icon icon-plus" ng-click="disDraft()"> 草稿</i>-->
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">现金报销总金额</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" certus-required
                                    class="form-control" ng-model="trEntity.totalAmount" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                </section>
                <section class="panel afrinfo" style="display: none;">
                    <header class="panel-heading">
                        报销分摊明细
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">报销主体公司</label>
                            <div class="col-sm-10">
                                <select class="form-control" ng-model="trItem.trCompanyCode">
                                    <option ng-repeat="x in ccCompanySelect" certus-required-polyfill
                                        value="{{x.code}}">{{x.name}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">报销类目</label>
                            <div class="col-sm-10">
                                <select class="form-control" ng-model="trItem.triClassCode">
                                    <option ng-repeat="x in ccClassSelect" certus-required-polyfill value="{{x.code}}">
                                        {{x.name}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">开始日期</label>
                            <div class="col-sm-10">
                                <input id="dateTime1" class="form-control" certus-required-polyfill
                                    ng-model="trItem.startDate">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">结束日期</label>
                            <div class="col-sm-10">
                                <input id="dateTime2" class="form-control" certus-required-polyfill
                                    ng-model="trItem.endDate">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">金额</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)"
                                    class="form-control" certus-required-polyfill ng-model="trItem.money">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">开始地点</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" certus-required-polyfill
                                    ng-model="trItem.startAddr">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">结束地点</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" certus-required-polyfill
                                    ng-model="trItem.endAddr">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" maxlength="120" certus-required-polyfill
                                    ng-model="trItem.trInstruction"></textarea>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">原始单据数量</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)"
                                    class="form-control" certus-required-polyfill ng-model="trItem.triNum">
                            </div>
                        </div>
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                                ng-click="closeAddItem();">取消</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info"
                                ng-click="itemSubmit()">提交</a>
                        </p>
                    </div>
                </section>
                <section class="panel haddpro" style="display: none;">
                    <header class="panel-heading">
                        项目分配信息(剩余￥{{surplus}})
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">项目名称</label>
                            <div class="col-sm-10">
                                <select class="form-control" ng-model="triPercent.projId" ng-disabled="triPercentDis">
                                    <option ng-repeat="x in availableProjNumberSelect" value="{{x.code}}">{{x.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">金额</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)"
                                    class="form-control" ng-model="triPercent.money"
                                    ng-change="triPercentChange(triPercent.money)" placeholder="请分配发票金额以内">
                            </div>
                        </div>
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info" onclick="haddpro();">取消</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info"
                                ng-click="percentSubmit(triPercent.projId)">提交</a>
                        </p>
                    </div>
                </section>
                <section class="panel">
                    <header class="panel-heading add-heading">
                        报销费用明细
                    </header>
                    <div class="panel-body">
                        <div id="afrContainer" class="dlshouwen-grid-container"></div>
                        <div id="afrToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
                    </div>
                </section>

                <section class="panel">
                    <div class="panel-heading">
                        审批记录
                    </div>
                    <div class="panel-body">
                        <ul class="tp-ulst1">
                            <li>
                                <span>人员姓名 </span><span>修改时间</span><span>处理结果</span><span>项目名称</span>
                            </li>
                            <div ng-repeat="proj in projs">
                                <div ng-repeat="ss in proj.projbb">
                                    <li>
                                        <span>{{ss.USER}}</span><span>{{ss.time | date:'yyyy-MM-dd hh:mm'}}</span><span>{{getsssbbb(ss.lastStatus)}}，{{ss.msg}}</span><span>{{ss.projName}}</span>
                                    </li>
                                </div>
                                <!-- <span>//</span><span>//</span><span>//</span><span>//</span> -->
                            </div>
                        </ul>
                    </div>
                </section>

                <section class="panel">
                    <div class="panel-body">
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                                onclick="window.history.back()">返回</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info"
                                onclick="window.history.back()">确认</a>
                        </p>
                    </div>
                </section>
                <!-- Modal -->
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <section class="panel">
                                <div class="panel-heading add-heading">
                                    报销费用项目占比信息
                                    <i class="add-icon icon-remove" data-dismiss="modal" aria-hidden="true"></i>
                                </div>
                                <div class="panel-body selpro-box">
                                    <table class="table table-bordered">
                                        <tbody>
                                            <tr>
                                                <td>报销分公司</td>
                                                <td>
                                                    <span>{{trItem.trCompanyName}}</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>报销类目</td>
                                                <td>
                                                    <span>{{trItem.triClassName}}</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>发票金额</td>
                                                <td>
                                                    <span>￥{{trItem.money}}元</span>
                                                </td>
                                            </tr>
                                            <tr ng-repeat="bb in nowprojectPercents">
                                                <td>{{bb.projName}}</td>
                                                <td>
                                                    <!--<div class="sh-btn">-->
                                                    <!--<span>{{bb.money}}</span>-->
                                                    <!--<button class="sedit-label btn btn-xs btn-danger" ng-click="delPercent(bb.projId);">-->
                                                    <!--<i class="fa fa-trash-o"></i> 删除</button>-->
                                                    <!--<button class="sedit-label btn btn-xs btn-info" ng-click="editPercent(bb.projId);">-->
                                                    <!--<i class="fa fa-edit"></i> 修改</button>-->
                                                    <!--</div>-->
                                                    <div class="hd-btn">
                                                        <span>￥{{bb.money}}</span>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="panel-bg"></div>
                            </section>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                    <!-- /.modal-dialog -->
                </div>
                <!-- Modal -->
                <div class="modal fade" id="yourModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                    aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <section class="panel">
                                <div class="panel-heading add-heading">
                                    报销费用项目占比信息
                                    <i class="add-icon icon-remove" data-dismiss="modal" aria-hidden="true"></i>
                                </div>
                                <div class="panel-body selpro-box">
                                    <table class="table table-bordered">
                                        <tbody>
                                            <tr ng-repeat="xx in dafts">
                                                <td>
                                                    <span><a
                                                            ng-click="openDraf(xx.trCode)">{{xx.createTime | date:'yyyy-MM-dd hh:mm'}}</a></span>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="panel-bg"></div>
                            </section>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                    <!-- /.modal-dialog -->
                </div>
                <!-- /.modal -->
            </div>
        </div>
    </section>
</section>



<div ng-include="'templates/workflow/scheduled/processs.html'"></div>